package com.cx.polymorphism;

/**
 * @Author:cxy
 * @Date:2022/3/6 20:14
 */
public class Human2<T>{

    private T t;


    public static void main(String[] args) {

        System.out.println(testFinally(1));
        System.out.println(testFinally(0));
    }

    public static String testFinally(int i){

        try {
            int a = 1/i;
            return "1";
        }catch (IndexOutOfBoundsException e){
            return "2";
        }finally {
            return "3";
        }
    }
}
